---
layout: base
---
{% assign t = site.data.locales[page.lang][page.lang] -%}
<div id="information">
  <ul>
    <li>
      <section class="group row">
        <h2 id="install">{{ t.pagecontent.install.install }}</h2>
        <br>
        <div class="copyable">
{% highlight bash -%}
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
{%- endhighlight %}
        </div>
        <br>
        <br>
        <div class="col-1">
          <p>{{ t.pagecontent.install.paste }}</p>
        </div>
        <div class="col-2">
          <p>{{ t.pagecontent.install.what }}</p>
        </div>
      </section>
      <section class="group row">
        <div class="col-1">
          <p>{{ t.pagecontent.install.pkginstaller }}</p>
        </div>
        <div class="col-2">
          <p>{{ t.pagecontent.install.githubrelease }}</p>
        </div>
      </section>
    </li>

    <li>
      <section class="group row">
       <h2 id="question">{{ t.pagecontent.question }}</h2>
       <br>
        <div class="col-1">
          <p>{{ t.pagecontent.what }}</p>
        </div>
        <div class="col-2">
{% highlight bash -%}
$ brew install wget
{%- endhighlight %}
        </div>
      </section>
    </li>

    <li>
      <div class="group row">
        <div class="col-1">
          <p>{{ t.pagecontent.how }}</p>
        </div>
        <div class="col-2">
{% highlight bash -%}
$ cd /opt/homebrew
$ find Cellar
Cellar/wget/1.16.1
Cellar/wget/1.16.1/bin/wget
Cellar/wget/1.16.1/share/man/man1/wget.1

$ ls -l bin
bin/wget -> ../Cellar/wget/1.16.1/bin/wget
{%- endhighlight %}
        </div>
      </div>
    </li>

    <li>
      <div class="group row">
        <div class="col-1">
          <p>{{ t.pagecontent.prefix }}</p>
        </div>
      </div>
    </li>

    <li>
      <div class="group row">
        <div class="col-1">
          <p>{{ t.pagecontent.createpackages }}</p>
        </div>
        <div class="col-2">
{% highlight bash -%}
$ brew create https://foo.com/foo-1.0.tgz
Created /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/foo.rb
{%- endhighlight %}
        </div>
      </div>
    </li>

    <li>
      <div class="group row">
        <div class="col-1">
          <p>{{ t.pagecontent.hack }}</p>
        </div>
        <div class="col-2">
{% highlight bash -%}
$ brew edit wget # {{ t.pagecontent.editor }}
{%- endhighlight %}
        </div>
      </div>
    </li>

    <li>
      <div class="group row">
        <div class="col-1">
          <p>{{ t.pagecontent.formula }}</p>
        </div>
        <div class="col-2">
{% highlight ruby -%}
class Wget < Formula
  desc "Internet file retriever"
  homepage "https://www.gnu.org/software/wget/"
  url "https://ftp.gnu.org/gnu/wget/wget-1.24.5.tar.gz"
  sha256 "fa2dc35bab5184ecbc46a9ef83def2aaaa3f4c9f3c97d4bd19dcb07d4da637de"
  license "GPL-3.0-or-later"

  def install
    system "./configure", "--prefix=#{prefix}"
    system "make", "install"
  end
end
{%- endhighlight %}
        </div>
      </div>
    </li>

    <li>
      <div class="group row">
        <div class="col-1">
          <p>{{ t.pagecontent.complement }}</p>
        </div>
      </div>
    </li>

    <li>
      <div class="group row">
        <div class="col-1">
          <p>{{ t.pagecontent.caskinstall }}</p>
        </div>
        <div class="col-2">
{% highlight bash -%}
$ brew install --cask firefox
{%- endhighlight %}
        </div>
      </div>
    </li>

    <li>
      <div class="group row">
        <div class="col-1">
          <p>{{ t.pagecontent.caskcreate }}</p>
        </div>
        <div class="col-2">
{% highlight bash -%}
$ brew create --cask https://foo.com/foo-1.0.dmg
Editing /opt/homebrew/Library/Taps/homebrew/homebrew-cask/Casks/foo.rb
{%- endhighlight %}
        </div>
      </div>
    </li>

    <li>
      <section class="group row">
        <h2>{{ t.pagecontent.doc.man }}</h2>
        <div class="button">
          <p><a href="https://docs.brew.sh/Manpage">docs.brew.sh/Manpage</a></p>
        </div>
      </section>
    </li>

    <li>
      <section class="group row">
        <h2 id="further-doc">{{ t.pagecontent.doc.further }}</h2>
        <div class="button">
          <p><a href="https://docs.brew.sh">docs.brew.sh</a></p>
        </div>
      </section>
    </li>

    <li>
      <section class="group row">
        <h2 id="homebrew-community">{{ t.pagecontent.doc.community }}</h2>
        <div class="button">
          <p><a href="https://github.com/Homebrew/discussions/discussions">Homebrew/discussions</a></p>
        </div>
      </section>
    </li>

    <li>
      <section class="group row">
        <h2 id="homebrew-blog">{{ t.pagecontent.doc.blog }}</h2>
        <div class="button">
          <p><a href="/blog/">brew.sh/blog</a></p>
        </div>
      </section>
    </li>

    <li>
      <section class="group row">
        <h2 id="homebrew-formulae">{{ t.pagecontent.doc.formulae }}</h2>
        <div class="button">
          <p><a href="https://formulae.brew.sh/">formulae.brew.sh</a></p>
        </div>
      </section>
    </li>

    <li>
      <section class="group row">
        <h2 id="analytics-data">{{ t.pagecontent.doc.analytics }}</h2>
        <div class="button">
          <p><a href="https://formulae.brew.sh/analytics/">formulae.brew.sh/analytics</a></p>
        </div>
      </section>
    </li>

    <li>
      <section class="group row">
        <h2 id="homebrew-donate">{{ t.pagecontent.doc.donate }}</h2>
        <div class="button">
          <p><a href="https://github.com/Homebrew/brew#donations">Homebrew/brew#donations</a></p>
        </div>
      </section>
    </li>

    <li>
      <footer class="group row credits">
        <p>{{ t.pagecontent.foot.code }} {{ t.pagecontent.foot.page }}<br>{{ t.pagecontent.foot.translation }}</p>
      </footer>
    </li>
  </ul>
</div>
